package com.hdax.dmw.scheduler.service;

import com.hdax.dmw.dtos.scheduler.SchedulerSeatDto;
import com.hdax.dmw.dtos.scheduler.SeatArrayDto;
import com.hdax.dmw.entity.scheduler.DmSchedulerSeat;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hdax.dmw.utils.Result;

import java.util.List;

/**
* @author guoyisha
* @description 针对表【dm_scheduler_seat(排期座位表)】的数据库操作Service
* @createDate 2023-06-15 12:16:43
*/
public interface DmSchedulerSeatService extends IService<DmSchedulerSeat> {

    //已出售的座位数量
    Integer getSaleCount(Long scheduleId);

    Result<SchedulerSeatDto> getSchedule(Long scheduleId);

    Result<SeatArrayDto> getSeatList(Long scheduleId);

    DmSchedulerSeat detail(Long scheduleId, Integer x, Integer y);

}
